package com.jrx.anytxn.transaction.mapper.ext;

import com.jrx.anytxn.transaction.entity.BtDailyAccountList;
import com.jrx.anytxn.transaction.mapper.base.BtDailyAccountListMapper;
import com.jrx.anytxn.transaction.pojo.DailyAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author yhy
 * @Date 2023/4/28 16:45
 */
public interface ExtBtDailyAccountListMapper extends BtDailyAccountListMapper {

    /**
     * 批量插入 日终T24核心记账信息 日终T24核心记账初始化
     * @param btDailyAccountListList 日终T24核心汇总记账初始化列表
     * @return
     */
    int batchInsert(List<BtDailyAccountList> btDailyAccountListList);

    /**
     * 删除所有信息
     */
    void deleteAll();

    /**
     * 按照支付渠道获取日终T24核心汇总记账金额
     *
     * @param settleChannels 支付渠道
     * @return
     */
    DailyAccount sumBySettleChannel(@Param("settleChannels") List<String> settleChannels);

    /**
     * 查询当日已记账完成明细数据
     * @return
     */
    List<BtDailyAccountList> selectAll();

    /**
     * 按照支付渠道获取日终T24核心记账明细
     *
     * @param settleChannels 支付渠道
     * @return
     */
    List<BtDailyAccountList> selectBySettleChannel(@Param("settleChannels") List<String> settleChannels);
}
